import 'package:universal_io/io.dart';
import 'package:flutter/services.dart';

class AudioPlayer {

  static const MethodChannel _methodChannel = MethodChannel('audio_player.methodChannel');
  // static const EventChannel _eventChannel = EventChannel('audio_player.callEventChannel');

  factory AudioPlayer() => _getInstance();

  const AudioPlayer._internal();

  static AudioPlayer get instance => _getInstance();
  static AudioPlayer? _instance;

  static AudioPlayer _getInstance() {
    _instance ??= const AudioPlayer._internal();
    return _instance!;
  }
}
